import http from '../untils/http'
//

// 封面列表
function list (data) {
  const url = '/index/materialList'
  return http.get(url, data)
}

// 上传封面
function upload (data) {
  const url = '/index/upload'
  return http.post(url, data)
}

// 添加封面
function add (data) {
  const url = '/index/materialAdd'
  return http.post(url, data)
}

// 删除封面
function del (data) {
  const url = '/index/materialDel'
  return http.get(url, data)
}

export default {
  list,
  upload,
  add,
  del
}
